// eslint-disable-next-line standard/object-curly-even-spacing
import { post, get } from './request'
export const LoginRequest = (params) => {
  return post('api/login', params)
}
export const RegisterRequest = (params) => {
  return post('api/register', params)
}
export const GetListAll = () => {
  return get('api/food/getLists')
}
export const addListAll = (params) => {
  console.log(params)
  return post('api/food/add', params)
}
export const deleteItem = (params) => {
  console.log(params)
  return post('api/food/del', params)
}
export const updateItem = (params) => {
  console.log(params)
  return post('api/food/updateLists', params)
}
export const uploadImg = (params) => {
  console.log(params)
  return post('api/file/upload', params)
}
